package com.example.hao.day8_20;

import java.util.List;

public class AsyncTaskData {

    @Override
    public String toString() {
        return "AsyncTaskData{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    /**
     * code : 9999
     * msg : 获取成功
     * data : [{"icon":"http://192.168.3.159:8080/image/a1.jpg","nick":"张三","lastMsg":"吃放了吗","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a2.jpg","nick":"李四","lastMsg":"我是真的爱你啊","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a3.jpg","nick":"王五","lastMsg":"你知道我在等你吗,你如果真的在乎我","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a4.jpg","nick":"青铜","lastMsg":"按时打发第三方","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a5.jpg","nick":"王者","lastMsg":"2阿斯顿发送到发送到","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a6.jpg","nick":"马云","lastMsg":"是的粉红色的个梵蒂冈","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a7.jpg","nick":"周杰伦","lastMsg":"是大法官需","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a8.jpg","nick":"汪峰","lastMsg":"吃放了吗","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/a9.jpg","nick":"王菲","lastMsg":"阿斯蒂芬啦开始房间","time":1534262400000},{"icon":"http://192.168.3.159:8080/image/b1.jpg","nick":"晓东","lastMsg":"熬枯受淡发科技的说服力可","time":1534262400000}]
     */

    private String code;
    private String msg;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        @Override
        public String toString() {
            return "DataBean{" +
                    "icon='" + icon + '\'' +
                    ", nick='" + nick + '\'' +
                    ", lastMsg='" + lastMsg + '\'' +
                    ", time=" + time +
                    '}';
        }

        /**
         * icon : http://192.168.3.159:8080/image/a1.jpg
         * nick : 张三
         * lastMsg : 吃放了吗
         * time : 1534262400000
         */

        private String icon;
        private String nick;
        private String lastMsg;
        private long time;

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getNick() {
            return nick;
        }

        public void setNick(String nick) {
            this.nick = nick;
        }

        public String getLastMsg() {
            return lastMsg;
        }

        public void setLastMsg(String lastMsg) {
            this.lastMsg = lastMsg;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }
    }
}
